package com.zhu.mapper;

import com.zhu.pojo.Debt;
import com.zhu.pojo.Expend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.List;

@Mapper
@Repository
public interface DebtMapper {
    List<Debt> getAll(int userId);

    List<Debt> getAllByAdmin();

    List<Debt> getByCondition(Debt debt);

    List<Debt> getByAdmin(Debt debt);

    int add(Debt debt);

    int update(Debt debt);

    int delete(int id);



}
